import type { VxeGridProps } from '#/adapter/vxe-table'
import { $t } from '@vben/locales'

// 列表表头
export const columns: VxeGridProps['columns'] = [
    { field: 'username', title: $t('page.system.children.user.children.username') },
    { field: 'nickname', title: $t('page.system.children.user.children.nickname') },
    { field: 'mobile', title: $t('page.system.children.user.children.mobile') },
    {
        field: 'roleNames',
        title: $t('page.system.children.user.children.roles'),
        width: 200
    },
    {
        field: 'status',
        title: $t('options.status.title'),
        width: 120,
        slots: { default: 'status' }
    },
    { field: 'createTime', title: $t('common.createTime') },
    {
        field: 'action',
        title: $t('common.action'),
        width: 120,
        fixed: 'right',
        slots: { default: 'action' }
    }
]

export const formSchema = [
    {
        fieldName: 'username',
        label: $t('page.system.children.user.children.username'),
        component: 'Input'
    }
]
